package io.xxx.xbutler.core.callback;

import io.xxx.xbutler.domain.Callback;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 机器人下载消息文件回调
 *
 * <pre>
 * {
 *     "nType": 5005,
 *     "vcMerchantNo": "",
 *     "vcRobotWxId": "",
 *     "vcRobotSerialNo": "",
 *     "vcSerialNo": "",
 *     "nResult": 1,
 *     "vcResult": "",
 *     "Data": {
 *         "vcDownFileSerialNo": "",
 *         "vcMsgId": "",
 *         "vcChatRoomSerialNo": "",
 *         "vcChatRoomId": "",
 *         "vcFromWxUserSerialNo": "",
 *         "vcFromWxUserWxId": "",
 *         "vcToWxUserSerialNo": "",
 *         "vcToWxUserWxId": "",
 *         "nMsgType": 2004,
 *         "vcContent": "",
 *         "nVoiceTime": 127,
 *         "vcShareTitle": "",
 *         "vcShareDesc": "",
 *         "vcShareUrl": "",
 *         "dtMsgTime": "",
 *         "dtDownExpireDate": ""
 *     }
 * }
 * </pre>
 */
@Slf4j
@Component
public class _5005Handler implements CallbackHandler {

    @Override
    public String name() {
        return "机器人下载消息文件回调";
    }

    @Override
    public boolean supports(int type) {
        return type == 5005;
    }

    @Override
    public void handle(Callback callback) {

    }
}
